<html>

<head>
<meta charset="UTF-8">
<title>状态管理</title>
</head>
<body>
	<#import "/page.ftl" as page />
	<script src="/js/system.js" type="text/javascript" charset="utf-8"></script>
	<#include "/head.ftl"/>
	<div class="content">
		<div class="tab">
			<div class="tab-header">
				<a href="/system/addstate" title="添加状态" class="btn btn-setting btn-add" id="add"> <i class="iconfont icon-add"
					style="font-size: 16px;"></i>
				</a>
				<!-- <a href="#" title="返回" class="btn btn-setting">
					<i class="iconfont icon-undo"></i>
				</a> -->
				<a title="刷新" class="btn btn-setting" onclick="refresh(this)">
					<i class="iconfont icon-refresh"></i>
				</a>
				<div class="tab-tool">
					<input name="search" type="text" placeholder="查找...">
					<a class="search-btn">
						<i class="iconfont icon-search"></i>
					</a>

				</div>
			</div>
			<div class="tab-content">
				<div>
					<table style="width: 100%; border-collapse: collapse;">
						<tr>
							<#assign sort=states.sort?replace(': ',',') />
							<th>序号</th>
							<th>名称</th>
							<th>类型值</th>
							<th>模块名</th>
							<th>背景颜色</th>
							<th class="tab-setting">操作</th>
						</tr>
						<#list (states.content) as state>
							<tr>
								<td>${state_index+1}</td>
								<td>${state.name}</td>
								<td>${state.value}</td>
								<td>${state.module}</td>
								<td>${state.color}</td>
								<td>
									<a href="/system/state/getone?id=${state.id}" title="修改状态" class="btn btn-update"><i class="iconfont icon-brush"></i><span> 修改</span></a>
									<a onclick="deleteOne(${state.id},'/system/state/delete')" class="btn btn-delete"><i class="iconfont icon-trash"></i><span> 删除</span></a>
								</td>
							</tr>
						</#list>
					</table>
				</div>
			</div>
			<@page.page url=requestURI pager=states/>
		</div>

	</div>
</body>
</html>